
<form action="./m.php?frm=action&mdl=index" name="iForm" id="iForm" method="post" target="eBody">
	<input type="hidden" name="id" id="id" value="{$info.id}" />
	<table border="0" align="center" cellpadding="0" cellspacing="1" class="data_form">
		<caption>{$_page.caption}</caption>
		<tbody>
			<tr>
				<th style="width:120px;">{$l.username}：</th>
				<td><input type="text" name="username" id="username" value="{$info.username}" class="input" style="width:240px;" /></td>
			</tr>
			<tr>
				<th>{$l.password}：</th>
				<td><input type="password" name="password" id="password" class="input" style="width:240px;" /></td>
			</tr>
			<tr>
				<th>{$l.confirm}{$l.password}：</th>
				<td><input type="password" name="password_confirm" id="password_confirm" class="input" style="width:240px;" /></td>
			</tr>
			<tr>
				<th>{$l.role}：</th>
				<td><select name="role" id="role" class="select" style="width:160px;">{$info.role_options}</select>
				</td>
			</tr>
			<tr>
				<th>{$l.super}：</th>
				<td><input type="text" name="super" id="super" value="{$info.super}" class="input" style="width:32px;" /></td>
			</tr>
			<tr>
				<th>{$l.debug}：</th>
				<td><input type="checkbox" name="debugging" value="1" {if $info.debugging}checked{/if} /></td>
			</tr>
			<tr>
				<th>邮箱：</th>
				<td><input type="text" name="email" id="email" value="{$info.email}" class="input" style="width:480px;" /></td>
			</tr>
			<tr>
				<th>{$l.memo}：</th>
				<td><textarea name="memo" id="memo" class="textarea" style="width:480px;">{$info.memo}</textarea></td>
			</tr>
		</tbody>
		<tfoot id="cmd">
			<tr>
				<th>&nbsp;</th>
				<td><button name="formAction" value="{$_act.frm}.{$_act.mdl}_{$_act.do}" class="button">{$l.submit}</button>
					<input type="reset" name="btnReset" value="{$l.reset}" class="button" z/></td>
			</tr>
		</tfoot>
	</table>
</form>

<script type="text/javascript" language="JavaScript" charset="utf-8">
<!--
	{literal}
	jQuery(function($){

		/*******************************************************************************
		 * 表单验证
		 *******************************************************************************/
		var objVf = $('form#iForm').Validform({
			showAllError	: true			// 显示所有错误提示信息
			,label			: 'th'			// 在没有绑定nullmsg时查找要显示的提示文字，默认查找".Validform_label"下的文字
			,tiptype		: vf_fadein		// 自定义
			// ,tiptype		: 3 			// 右侧
		});
		
		objVf.addRule([
			{	ele : 'input[name="username"]',				datatype : 'c2-20'		}
			,{	ele : 'select[name="role"]',				datatype : 'n1-11'		}
			,{	ele : 'input[name="password"]',				datatype : 's6-20',		ignore : 'ignore'}
			,{	ele : 'input[name="password_confirm"]',		datatype : 's6-20',		recheck : 'password',		ignore : 'ignore'}
		]);
	});
	{/literal}
-->
</script>